﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PhotoGallery.Infrastructure.Collections;

namespace PhotoGallery.Core.Business
{

    [Serializable]
    public class AccountSearch
    {

        public int? PageIndex { get; set; }

        public int? PageSize { get; set; }

        public string Name { get; set; }

        public Core.Business.Gender Gender { get; set; }

        public AccountSearch()
        {

            PageIndex = (int?)1;
            PageSize = (int?)1000;
        }


    }
    public class AccountIndexModel
    {
        #region Field

        public PagedList<Core.Business.Account> Accounts { get; set; }

        public AccountSearch Search { get; set; }

        #endregion

        #region Constructor

        public AccountIndexModel()
        {
            // temp do nothing
        }

        public AccountIndexModel(AccountSearch search, PagedList<Core.Business.Account> accounts)
        {
            this.Accounts = accounts;
            this.Search = search;
        }

        #endregion

    }


     

    






}
